 /**
  *  打印日志
  */
module zysx {
	export class LogUtil {
		private static _isDebug:boolean;
		public constructor() {
		}
		static set isDebug(isDebug:boolean){
			this._isDebug = isDebug;	
		}
		static get isDebug():boolean{
			return this._isDebug;
		}
		static log(message?: any, ...optionalParams: any[]):void{
			if(!this.isDebug) return;Console
			console.log.apply(console,arguments);
		}
		static warn(message?: any, ...optionalParams: any[]):void{
			if(!this.isDebug) return;
			console.warn.apply(console,arguments);
		}
		static info(message?: any, ...optionalParams: any[]):void{
			if(!this.isDebug) return;
			console.info.apply(console,arguments);
		}
		static group(groupTile?:String):void{
			if(!this.isDebug) return;
			console.group.apply(console,arguments);
		}
		static groupCollapsed(groupTile?:String):void{
			if(!this.isDebug) return;
			console.groupCollapsed.apply(console,arguments);
		}
		static groupEnd():void{
			if(!this.isDebug) return;
			console.groupEnd();
		}
	}
}